<% if @comments && @comments.size > 0 %>
<% first = true %>
<% @books.each do |comment| %>
<% if (first == true) %>
<% first = false %>
<div class = "comment_data_first">
<% else %>
<div class = "comment_data">
<% end %>
<%= render :partial => "comment_detail", :locals => { :comment => comment, :search => true } %>
</div>
<% end %>
<% else %>
<%= "NO matching found" %>
<% end %>